#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
__author__ = "Administrator"
__name__="custom_thread_class"
__date__="2016/7/13"
__time__="9:45"
"""

# 自定义线程类
from threading import Thread
import  time
class MyThread(Thread):
    def run(self):
        print '我是线程'
        Thread.run(self)    # 调用父类的run方法


def Bar():
    print 'bar'

t1 = MyThread(target=Bar)
t1.start()
print 'over'
